<template>
  <div class="container">
    <div class="content">
      <itemTag type="3" @checked="changeHandler"></itemTag>
      <poster :miva="dataList"></poster>
    </div>
  </div>
</template>

<script>
// api
import { getProjectList } from "@/api/miva";
// item
import itemTag from "@/components/miva-item/item-tags";
import poster from "@/components/posterList";
export default {
  components: {
    itemTag,
    poster
  },
  data() {
    return {
      dataList: [],
      show: false
    };
  },
  created() {
    this.$store.commit("SETTING_HEADER_ACTIVE1", 2);
  },
  async mounted() {
    await this.getProjectList();
  },
  methods: {
    async getProjectList() {
      const res = await getProjectList({ type: 3, page: 1, size: 999 });
      console.log(res);
      this.dataList = res.data;
    },
    changeHandler(data) {
      this.dataList = data;
    }
  }
};
</script>

<style lang="less">
.container {
  background: #fff;
  .content {
    max-width: 1200px;
    margin: 0 auto;
  }
}
</style>